package chapter4.injection_contructure;

import org.springframework.context.support.GenericXmlApplicationContext;

public class TestMain {
	public static void main(String[] args) {
		GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
		ctx.load("classpath:chapter4/application-contex-inject-contructure-xml.xml");
		ctx.refresh();
		// MessageProvider provider = ctx.getBean("messageProvider",
		// MessageProvider.class);
		MessageRender render = ctx
				.getBean("messageRender", MessageRender.class);
		// render.setMessageProvider(provider);
		render.render();
	}
}
